#include<stdio.h>
#include<stdlib.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <time.h>
#include <math.h>
#include "constante.h"
#include "menu.h"
#include "player_vs_pc_easymode.h"

#include "test.h"


int main(int argc, char *argv[])
{
    SDL_Surface *ecran = NULL; /*initialisation de surface pour l'ecran */


    SDL_Init(SDL_INIT_VIDEO);/*initialisation des fonction de la SDL video*/
    /*verification que ca marche */
    if (SDL_Init(SDL_INIT_VIDEO)==-1)
    {
        fprintf(stderr,"erreur lors du lancement de la SDL: %s\n",SDL_GetError());
        /*ecriture de l'erreur dans le fichier d'erreur stderr*/
        exit(EXIT_FAILURE);
    }
    SDL_WM_SetIcon(IMG_Load("image\\icone.jpg"), NULL);
    ecran=SDL_SetVideoMode(longuer_fenetre,largeur_fenetre, 32,SDL_HWSURFACE |  SDL_DOUBLEBUF | SDL_RESIZABLE  );
    SDL_WM_SetCaption("JEU DE NIM BY ZAKHAMA ASMA & MAATOUK MALEK", NULL);

   menu_principale(ecran);

  //test_affichage (ecran);
  //game_player_vs_pc_facile(ecran);


    SDL_Quit();
    return EXIT_SUCCESS;
}
